﻿using System.Diagnostics;

namespace KeyLock
{
    public static class Texte
    {
        #region Attributs
        #endregion

        #region Constructeur
        #endregion

        #region Proprietes
        #endregion

        #region Methodes
        public static string DecodeSetting(string s)
        {
            Debug.Print(s);
            Debug.Print(s.Replace("[InstallDir]", Microsoft.VisualBasic.FileIO.FileSystem.CurrentDirectory));
            return s.Replace("[InstallDir]", Microsoft.VisualBasic.FileIO.FileSystem.CurrentDirectory);
        }

        public static string CodeSetting(string s)
        {
            Debug.Print(s);
            Debug.Print(s.Replace(Microsoft.VisualBasic.FileIO.FileSystem.CurrentDirectory, "[InstallDir]"));
            return s.Replace(Microsoft.VisualBasic.FileIO.FileSystem.CurrentDirectory, "[InstallDir]");
        }
        #endregion
    }
}
